#ifndef MATRIXFUNCTIONS_H_INCLUDED
#define MATRIXFUNCTIONS_H_INCLUDED
#include <iostream>
#include <cmath>
using namespace std;
void printmatrix(int x[][100], int rows, int col)
{
	int i, j;
	for (i=0;i<rows;i++){
		for(j=0;j<col;j++)
			cout<<x[i][j]<<" ";
		cout<<"\n";
	}

}
void printmatrix(char x[][100], int rows, int col)
{
	int i, j;
	for (i=0;i<rows;i++){
		for(j=0;j<col;j++)
			cout<<x[i][j]<<" ";
		cout<<"\n";
	}

}

void printmatrix(float x[][100], int rows, int col)
{
	int i, j;
	for (i=0;i<rows;i++){
		for(j=0;j<col;j++)
			cout<<x[i][j]<<" ";
		cout<<"\n";
	}

}

void readmatrix(int x[][100], int rows, int col)
{
	int i, j;
	for (i=0;i<rows;i++)
		for(j=0;j<col;j++){
			cout<<"m["<<i<<"]["<<j<<"]= ";
			cin>>x[i][j];
	}

}

void readmatrix(char x[][100], int rows, int col)
{
	int i, j;
	for (i=0;i<rows;i++)
		for(j=0;j<col;j++){
			cout<<"m["<<i<<"]["<<j<<"]= ";
			cin>>x[i][j];
	}

}

void readmatrix(float x[][100], int rows, int col)
{
	int i, j;
	for (i=0;i<rows;i++)
		for(j=0;j<col;j++){
			cout<<"m["<<i<<"]["<<j<<"]= ";
			cin>>x[i][j];
	}

}

void matrixcopy(int where[][100], int who[][100], int row, int col)
{
	int i, j;
	for(i=0; i<row; ++i)
		for(j=0; j<col; ++j)
			where[i][j]=who[i][j];
}


#endif // MATRIXFUNCTIONS_H_INCLUDED
